package cn.iocoder.yudao.module.trade.pickup;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 配送方式枚举
 *
 * @author 万民匠心
 */
@Getter
@AllArgsConstructor
public enum PickUpTypeEnum implements IntArrayValuable {

    //EXPRESS(1, "快递发货"),
    PICK_UP_TAKE_AWAY(0,"自提带走"),
    PICK_UP_IN_STORE(1, "店内用餐");
    //1店内用餐，0自提带走

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(PickUpTypeEnum::getType).toArray();

    /**
     * 配送方式
     */
    private final Integer type;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
